import Vue from 'vue'
import Router from 'vue-router'
import home from '../components/home'
import helloWorld from '../views/helloWorld/home'
import feature from '../views/feature/home'
import gaode from '../views/gaode/home'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        redirect: {
            // name: 'home'
            name: 'feature'
        }
    }, {
        path: '/home',
        name: 'home',
        component: home
    }, {
        path: '/helloWorld',
        name: 'helloWorld',
        component: helloWorld
    }, {
        path: '/feature',
        name: 'feature',
        component: feature
    }, {
        path: '/gaode',
        name: 'gaode',
        component: gaode
    }]
})
